
export const deepClone=(obj)=>{
    let arr;
    if(Array.isArray(obj)){
        arr=[]
        for(let item of obj){
            arr.push(this.deepClone(item))
        }
        return arr
    }else if(Object.prototype.toString.call(obj)=="[Object Object]"){
        arr={}
        for(let key in obj){
            arr[key]=this.deepClone(obj[key])
        }
        return arr
    }else{
        return obj
    }
}